package bancosys.tec.job;

import bancosys.tec.exception.AbstractException;
import bancosys.tec.exception.LocalizedMessageHolder;

/**
 * @created May 26, 2006
 * @author Gustavo Almeida
 */
public class JobExecutionException extends AbstractException {

    /**
     * C'tor. Evite usar este construtor, apresenta mensagem de erro genérica, pouco informativa.
     * 
     * @param cause a CAUSA desta exception.
     */
    public JobExecutionException(Throwable cause) {
        this(JobMessages.GENERIC_EXECUTION_ERROR.create(), cause);
    }

    /**
     * C'tor.
     * 
     * @param messageHolder message
     * @param cause cause
     */
    public JobExecutionException(LocalizedMessageHolder messageHolder, Throwable cause) {
        super(messageHolder, cause);
    }

    /**
     * C'tor.
     * 
     * @param message message
     */
    public JobExecutionException(LocalizedMessageHolder message) {
        super(message);
    }
}
